package com.mall.malladminbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Spu {
  @TableId(type = IdType.AUTO)
  private long id;
  private String title;
  private String subtitle;
  private long categoryId;
  private Boolean online;
  private Date createTime;
  private Date updateTime;
  private String price;
  private String img;
  private String discountPrice;
  private String description;
  private String tags;
  @TableField(exist = false)
  private List<SpuImg> spuImgs;
  @TableField(exist = false)
  private List<SpecKey> specKeys;
  @TableField(exist = false)
  private Category category;


}
